#!/bin/sh

cd "$(dirname "$0")"
cd ../../..
cd tensorflow

bazel build //tensorflow/tfextern:libtfextern.so 
cd ..

mkdir -p lib
cp tensorflow/bazel-bin/tensorflow/tfextern/*.so lib/
cp tensorflow/bazel-bin/tensorflow/*.so lib/
ln -s lib/libtensorflow_framework.so lib/libtensorflow_framework.so.1
